#include <iostream>
using namespace std;
#include <string>
#include <vector>
#include <ctime>
#include <algorithm>
void WorkerAgeSort(vector<int>& w)
{
	int helper[101] = { 0 };
	for (vector<int>::iterator it = w.begin(); it != w.end(); it++)
	{
		helper[*it]+=1;
	}
	for (int i=0;i<100;i++)
	{
		while (helper[i]!=0)
		{
			cout << i << " ";
			helper[i]--;
			cout << endl;
		}
		cout << endl;
	}
}
void InitWorker(vector<int>& w)
{
	for (int i = 0; i < 1000; i++)
	{
		w.push_back(rand()%99+1);
	}
}
int main()
{
	srand((unsigned int)time(NULL));
	vector<int>v;
	InitWorker(v);
	WorkerAgeSort(v);
}